package hpasControllers;

import hpasDAO.DetailedTypeDAO;
import hpasDAO.GeneralTypeDAO;
import hpasDAO.HardwareDAO;
import hpasDataEntities.GeneralType;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class HardwareMgmtController implements ActionListener
{
    // 界面元件
    private JList<String> generalTypeList;
    private JList<String> detailedTypeList;
    private JList<String> hardwareList;
    private JTextField tfModelNo;
    private JTextField tfProductName;
    private JComboBox<String> tfDetailedType;
    private JTextArea taDescription;
    private JButton updateButton;
    private JButton removeButton;

    // 后端接口
    private GeneralTypeDAO generalTypeDAO;
    private DetailedTypeDAO detailedTypeDAO;
    private HardwareDAO hardwareDAO;

    // 方法
    /** 处理监听 **/
    @Override
    public void actionPerformed(ActionEvent e)
    {}

    /** 选中大类后切换小类显示 **/
    public void onSelectedGeneralType(String generalTypeName)
    {}

    /** 选中小类后切换硬件列表显示 **/
    public void onSelectedDetailedType(String detailedTypeName)
    {}

    /** 更新硬件 **/
    public void onHardwareUpdate()
    {}

    /** 删除硬件 **/
    public void onHardwareRemove()
    {}
}
